﻿using System;
using System.Collections.Generic;

namespace Bookvar.ObjectModel.Collections
{
    [Serializable]
    public class AnnotationCollection : ObservableKeyedCollection<Guid, Annotation>
    {
        public AnnotationCollection()
        {
        }

        public AnnotationCollection(IEnumerable<Annotation> items)
            : base(items)
        {
        }

        protected override Guid GetKeyForItem(Annotation item)
        {
            return item.ID;
        }
    }
}